package com.pinda.feign;

import com.pinda.oms.vo.PdOrderCargoSerach;
import com.pinda.oms.vo.PdOrderCargoView;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 货物信息的远程调用
 */
@FeignClient(value = "aggregation-service",path = "/pd-order-cargo",url = "http://localhost:2001")
public interface PdOrderCargoFeignClient {

    /**
     * 根据订单和运单编号查询得到获取该订单对应到的货物信息表 远程调用
     * @param serach
     * @return
     */
    @PostMapping("/selectOrderCargoaByorderid")
    List<PdOrderCargoView> selectOrderCargoaByorderidController(@RequestBody PdOrderCargoSerach serach);
}
